using System;
using System.IO;

namespace Atomic.Libraries
{
	[Serializable]
	public class RawDataFile
	{
		public RawDataFile(string data)
		{
			Data = data;
		}

		public RawDataFile(FileInfo file)
			: this(File.ReadAllText(file.FullName))
		{
		}

		public virtual void Write(FileInfo file)
		{
			File.WriteAllText(file.FullName, Data);
		}

		public string Data
		{
			get;
			private set;
		}
	}
}
